<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http:www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<include file="./Home/Tpl/Admin/Common/cssjs.html" />
</head>
<body>
<style type="text/css">
	html{_overflow-y:scroll}
</style>
<script type="text/javascript">
<!--
$(function(){
	$.formValidator.initConfig({autotip:true,formid:"myform",onerror:function(msg){}});
	$("#title").formValidator({onshow:"请输入推荐位标题",onfocus:"推荐位标题不能为空。"}).inputValidator({min:1,max:999,onerror:"推荐位标题不能为空。"});
	$("#url").formValidator({onshow:"请输入链接地址",onfocus:"链接地址不能为空。"}).inputValidator({min:1,max:999,onerror:"链接地址不能为空。"});	
})
//-->
</script>
<div class="pad_10">
  <div class="common-form">
    <form name="myform" action="{:U("Contents/Position/public_item_manage")}" method="post" id="myform">
      <input type="hidden" name="posid" value="{$posid}">
      </input>
      <input type="hidden" name="modelid" value="{$modelid}">
      </input>
      <input type="hidden" name="id" value="{$id}">
      </input>
      <table width="100%" class="table_form">
        <tr>
          <td  width="100">推荐位标题</td>
          <td><input type="text" name="data[title]" class="input-text" value="{$data['title']}" id="title" size="40">
            </input></td>
        </tr>
        <tr>
          <td>推荐位图片</td>
          <td><?php echo form::images('thumb','thumb',$data['thumb'],'content')?></td>
        </tr>
        <tr>
          <td>推荐时间</td>
          <td><?php echo Form::date('data[inputtime]', date('Y-m-d H:i:s',$data['inputtime']), 1)?></td>
        </tr>
        <tr>
          <td>描述</td>
          <td><textarea name="data[description]" rows="2" cols="20" id="description" class="inputtext" style="height:267px;width:430px;">{$data['description']}</textarea></td>
        </tr>
        <tr>
          <td>修改文章时同步？</td>
          <td>
          <input name="synedit"  value="0" type="radio" <if condition=" $synedit == '0' "> checked="checked"</if>>
            启用
            <input name="synedit" value="1" type="radio" <if condition=" $synedit == '1' "> checked="checked"</if>>
            关闭 </td>
        </tr>
      </table>
      <div class="bk15"></div>
      <input name="dosubmit" type="submit" value="提交" class="dialog" id="dosubmit">
    </form>
  </div>
</div>
</body>
</html>